package com.cdie.myschool.mapper.TeacherTermReportMapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cdie.myschool.domain.entity.EduReformOld;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.ResultType;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.mapping.ResultSetType;
import org.apache.ibatis.session.ResultHandler;

/**
 * @program:my-school
 * @ClassName:EduReformOldMapper
 * @Description:教改项目Old
 * @author:毛康源
 * @data:2022-10-09 14:54
 **/
@Mapper
public interface EduReformOldMapper extends BaseMapper<EduReformOld> {
    @Select("select * from teacher_education_reform_info")
    @Options(resultSetType = ResultSetType.FORWARD_ONLY, fetchSize = 1000)
    @ResultType(EduReformOld.class)
    @DS("slave_1")
    void getEduReformData(ResultHandler<EduReformOld> handleEduform);
}
